//using Microsoft.VisualBasic;
using System;

//
// *  NHibernate 代码模版
// 

using System.Collections.Generic;

namespace NCS
{
	/// <summary>
	///	
	/// </summary>
	[Serializable()]
	public class sample
	{

		#region "构造方法"
		public sample()
		{
			m_ID = 0;
			m_name = null;
			m_cArea = 0;
			m_c = 0;
			m_sArea = 0;
			m_s = 0;
			m_mdate = DateTime.Now;
			m_user = null;
			m_weight = 0;
			m_method = null;
			m_methodid = 0;
			m_isHc = 0;
			m_isHs = 0;
			m_sessionid = 0;
			m_sampleid = 0;
			m_anaxuhao = 0;
			m_cInt = 0;
			m_sInt = 0;
			m_sIndex = 0;
			m_cIndex = 0;
			m_standardid = 0;
			m_sIndex2 = 0;
			m_cIndex2 = 0;

			m_wlweight = 0;
		}
		#endregion


		#region "私有变量"
		private int m_ID;
		private string m_name;
		private double m_cArea;
		private double m_c;
		private double m_sArea;
		private double m_s;
		private DateTime m_mdate;
		private string m_user;
		private double m_weight;
		private string m_method;
		private int m_methodid;
		private int m_isHc;
		private int m_isHs;
		private int m_sessionid;
		private int m_sampleid;
		private int m_anaxuhao;
		private double m_cInt;
		private double m_sInt;
		private int m_sIndex;
		private int m_cIndex;
		private int m_standardid;
		private int m_sIndex2;
		private int m_cIndex2;

		private double m_wlweight;
		#endregion


		#region "公有属性"

		///<summary>
		///
		///</summary>
		public virtual int ID {
			get { return m_ID; }
			set { m_ID = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string name {
			get { return m_name; }
			set { m_name = value; }
		}



		///<summary>
		///
		///</summary>
		public virtual double c {
			get { return m_c; }
			set { m_c = value; }
		}
		///<summary>
		///
		///</summary>
		public virtual double s {
			get { return m_s; }
			set { m_s = value; }
		}

		///<summary>
		///
		///</summary>
		///<summary>
		///
		///</summary>
		public virtual double cArea {
			get { return m_cArea; }
			set { m_cArea = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double sArea {
			get { return m_sArea; }
			set { m_sArea = value; }
		}


		public virtual DateTime mdate {
			get { return m_mdate; }
			set { m_mdate = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string user {
			get { return m_user; }
			set { m_user = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double weight {
			get { return m_weight; }
			set { m_weight = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual string method {
			get { return m_method; }
			set { m_method = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int methodid {
			get { return m_methodid; }
			set { m_methodid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int isHc {
			get { return m_isHc; }
			set { m_isHc = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int isHs {
			get { return m_isHs; }
			set { m_isHs = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sessionid {
			get { return m_sessionid; }
			set { m_sessionid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sampleid {
			get { return m_sampleid; }
			set { m_sampleid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int anaxuhao {
			get { return m_anaxuhao; }
			set { m_anaxuhao = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double cInt {
			get { return m_cInt; }
			set { m_cInt = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double sInt {
			get { return m_sInt; }
			set { m_sInt = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sIndex {
			get { return m_sIndex; }
			set { m_sIndex = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int cIndex {
			get { return m_cIndex; }
			set { m_cIndex = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int standardid {
			get { return m_standardid; }
			set { m_standardid = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int sIndex2 {
			get { return m_sIndex2; }
			set { m_sIndex2 = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual int cIndex2 {
			get { return m_cIndex2; }
			set { m_cIndex2 = value; }
		}

		///<summary>
		///
		///</summary>
		public virtual double wlweight {
			get { return m_wlweight; }
			set { m_wlweight = value; }
		}

		#endregion

		#region "Rewrite Equals and HashCode"
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if (object.ReferenceEquals(this, obj)) {
				return true;
			}
			if ((obj == null) || (!object.ReferenceEquals(obj.GetType(), GetType()))) {
				return false;
			}
			sample castObj = (sample)obj;
			return (castObj != null) && (m_ID == castObj.ID);
		}
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 57;
			hash = 27 * hash * m_ID.GetHashCode();
			return hash;
		}
		#endregion
	}
}
